using System.Collections;
using System.Collections.Generic;
using System;
using UnityEngine;
using PropSys;
using UnityEngine.InputSystem;

public class StBlock : MovState
{
    public StBlock(Action<StType> swcSt, MainCtrl mc) : base(swcSt, mc) { }

    public override void Enter()
    {
        Debug.Log("EnterBlk");
        _MC.PlayAnim("Block");
    }

    public override void Exit()
    {

    }

    public override void LogicUpd()
    {
        _MC.Move();
    }

    public override void IptDir(Vector2 vec2)
    {
        _MC.GetDri(vec2);
    }

    public override void CancelBlk()
    {
        Debug.Log("ExitBlk");
        SwcSt(StType.Idle);
    }

    public override void PfmSkill() { SwcSt(StType.Skill); }

    public override void Dodge() { SwcSt(StType.Dodge); }
}
